
layui.use(['element', 'jquery', 'layer', 'laytpl','laypage','form','table'], function() {
    var $ = layui.jquery,
        layer = layui.layer,
        laytpl = layui.laytpl,
        laypage = layui.laypage,
        form = layui.form,
        element = layui.element,
        table = layui.table;

    var str;
    $(document).ready(function () {
        str=window.location.pathname;
        var jiajuId = str.substring(str.lastIndexOf("/")+1);

        $.ajax({
            url:'/com/selectbyjiajuId?jiajuId?'+jiajuId,
            success: function (res) {
                console.log(res);
                if(res.code != 0){
                    //渲染订单明细
                    laytpl($("#order-item-tpl").html()).render(res.data,function(html){
                        $("#layui-row").html(html);
                    });
                }
            }

        })

    })
})